package com.bjpowernode.boss.common.exception;

import com.bjpowernode.boss.common.enums.ResponseCode;
import jakarta.annotation.Resource;

/**
 * @author Mrs.cui
 * 2024-07-07-22-21
 */
public class BossException extends RuntimeException{

    @Resource
    private ResponseCode responseCode;
    public BossException() {
        super();
    }

    public BossException(String message) {
        super(message);
    }

    public BossException(ResponseCode responseCode) {
        this.responseCode = responseCode;
    }

    public ResponseCode getResponseCode() {
        return responseCode;
    }
}
